﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnimalOnPropertyChange
{
   public class PropertyChangedEventArgs:EventArgs
    {
        private string propertyName;
        private object oldValue;
        private object newValue;

        public PropertyChangedEventArgs(string propertyName, object oldValue, object newValue)
        {
            this.propertyName = propertyName;
            this.oldValue = oldValue;
            this.newValue = newValue;
        }

        public string PropertyName
        {
            get
            {
                return propertyName;
            }
        }

        public object OldValue
        {
            get
            {
                return oldValue;
            }
        }

        public object NewValue
        {
            get
            {
                return newValue;
            }
        }
    }
}
